package com.lcb.dubbo;

import com.lcb.client.User;
import com.lcb.client.UserService;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.stereotype.Component;


/**
* @Author: 刘长柏
* @Date: 2021-03-13
* @Description:
*/
@Service
@Component
public class UserServiceImpl implements UserService {
    @Override
    public User getUser(Integer id) {
        User user = new User();
        user.setId(id);
        user.setName("刘长柏");
        user.setSex("男");
        return user;
    }
}
